package com.example.flower_shop.repository;

import com.example.flower_shop.entity.OrderItem;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderItemRepository extends BaseRepository<OrderItem, Long> {

    List<OrderItem> findByCustomerOrder_Id(Long orderId);

    List<OrderItem> findByProductId(Long productId);
}